package com.zhiyueshufang.component

import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import android.widget.ScrollView


class MyVerticalScrollView(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) :
    ScrollView(context, attrs, defStyleAttr) {
    constructor(context: Context?) : this(context, null) {}
    constructor(context: Context?, attrs: AttributeSet?) : this(context, attrs, 0) {}

    override fun onInterceptTouchEvent(ev: MotionEvent): Boolean {
        //关键点在这
//        parent.requestDisallowInterceptTouchEvent(true)
        return super.onInterceptTouchEvent(ev)
    }
}